package cn.edu.klmy.dao;

import cn.edu.klmy.models.teacher.Teacher;

import java.util.List;
import java.util.Map;

public interface ITeacherDao {
	void addTeacher(Teacher teacher);

	void removeTeacher(int teacherId);

	void updateTeacher(Teacher teacher);

	Teacher getTeacher(String fieldName, Object value);

	boolean teacherExists(int teacherId);

	boolean teacherExistsByIdentityCardNumber(String identityCardNumber);

	List<Teacher> getTeachers(Map<String, Object[]> filter, int pageNum,
			int pageSize);

	int getTeacherCount(Map<String, Object[]> filter);

	byte[] getTeacherPicture(int teacherId);

	void setTeacherPicture(int teacherId, byte[] picture);

	List<Teacher> getTeachersInClasz(int claszId);

	List<Teacher> getTeachersNotInClasz(int claszId);

	public List<Teacher> getAllTeachers();
}
